<style src="./invester-list.css"></style>

<template lang="html">
<div class="invester-wrap">
  <div class="invester-menu ly-row-flex">
    <add-invester></add-invester>
  </div>
  <table class="table table-bordered table-hover">
    <caption>投顾资料管理</caption>
    <thead>
      <tr>
        <th class="col-xs-2">id</th>
        <th class="col-xs-2">姓名</th>
        <th class="col-xs-2">头像</th>
        <th class="col-xs-2">机构</th>
        <th class="col-xs-2">执业证编号</th>
        <th class="col-xs-2"></th>
      </tr>
    </thead>
    <tbody>
      <tr v-for="invester in investerList">
        <td class="col-sm-2">{{invester.id}}</td>
        <td class="col-sm-2">{{invester.name}}</td>
        <td class="col-sm-2">
          <img class="invester-image" :src="serverRoot + invester.img"/>
        </td>
        <td class="col-sm-2">{{invester.org}}</td>
        <td class="col-sm-2">{{invester.cardNum}}</td>
        <td class="col-sm-2">
          <update-invester :update-invester="deepClone(invester)"></update-invester>
        </td>
      </tr>
    </tbody>
  </table>
</div>
</template>

<script src="./invester-list.js"></script>
